package cn.e4j.modular.crm.service;
import cn.e4j.core.dto.impl.Dto;
import cn.e4j.modular.crm.entity.GwbcT;
import cn.e4j.modular.crm.entity.GwbclT;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  关键项评估 服务类
 * </p>
 *
 * @author mengyb
 * @since 2019-04-12
 */
public interface GwbcTService extends IService<GwbcT> {
    /**
     * 查询关键项评估列表
     * @param dto
     * @param page
     * @return
     */
    List<Map<String, Object>> getList(Dto dto, Page<Object> page);

    void add(GwbcT gwbcT, GwbclT gwbclT);

    void edit(GwbcT gwbcT, GwbclT gwbclT);

    void delRow(GwbcT gwbcT, GwbclT gwbclT);

    void delRows(List<GwbcT> gwbcTList);

    /**
     * 查重
     * @param gwbcT
     * @return
     */
    Boolean existedTheParams(GwbcT gwbcT);
}
